﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class1
    {
        
        static void Main(string[] args)
        {

            test1();


        }
        static void test() { 
        
            Program Program = new Program() ;
            Program.Name = "hehehe";
            Program.Mi = 123456789;
            Program.Hao = 456478971;
            Program.Shen = "呵呵";
            Program.SayHI();
        
        }
        static void test3()
        {
            BOOK bOOK = new BOOK();
            bOOK.Id = 123456789;
            bOOK.Name = "呵呵呵";
            bOOK.Price = 15674234;
            bOOK.SayHI();



        }
        static void test4() {
            chubanshe chubanshe = new chubanshe();
            chubanshe.Name = "hehehe";
            chubanshe.Mi = "wi黑恶嘿嘿";
            chubanshe.Hao = 456478971;
            chubanshe.Shen = "呵呵";
            chubanshe.SayHI();

        }

            static void test1() {
            int[,] arr = new int[10, 12];
            arr[0, 1] = 1;


            for (int i = 1; i < arr.GetLength(0); i++)
            {
                for (int j = 1; j < arr.GetLength(1); j++)
                {
                    arr[i, j] = arr[i - 1, j - 1] + arr[i - 1, j];
                }
            }
            for (int i = 0; i < arr.GetLength(0); i++)
            {
                for (int k = 0; k < arr.GetLength(1) - i; k++)
                    Console.Write(" ");
                for (int j = 0; j < arr.GetLength(1); j++)
                {

                    if (arr[i,j]!=0)
                    {
                     Console.Write(arr[i,j]+" ");
                    }
                    
                }
                Console.WriteLine();
            }
        }
    }
}
